package com.dao.purchase;

import com.model.purchase.PurchaseInquiry;
import com.model.purchase.PurchaseInquiryVO;

import java.util.List;
import java.util.Map;

/**
 * @description purchase_inquiry
 * @author chenjun
 * @date 2022-02-23
 */
public interface InquiryMapper {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	int insert(PurchaseInquiry purchaseInquiry);

	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	int delete(String inqId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	int update(PurchaseInquiry purchaseInquiry);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	PurchaseInquiry load(String id);

	/**
	 * 查询 分页查询
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	List<PurchaseInquiry> pageList(int offset, int pagesize);

	/**
	 * 查询 分页查询 count
	 * 
	 * @author chenjun
	 * @date 2022/02/23
	 **/
	int pageListCount(int offset, int pagesize);

	// 查询询价书列表
	List<PurchaseInquiry> selectInquiryList(Map<String, Object> map);

	// 查询询价书列表总数
	int selectInquiryListCount(Map<String, Object> map);

	PurchaseInquiryVO selectVO(String id);
}